package com.jack.coustomlargeimageview

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import java.io.IOException

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val bigView: LoadLargeView = findViewById(R.id.bigView)
        try {
            val inputStream = assets.open("test.png")
            bigView.setImage(inputStream)
        } catch (e: IOException) {
            e.printStackTrace()
        }
    }
}